package com.gowants.pems.mapper;

import com.gowants.pems.model.City;
import com.gowants.pems.model.Province;
import com.gowants.pems.model.Region;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RegionMapper {

    public List<Region> select(@Param("record") Region record);

    public Region selectById(String id);

    public int insert(Region region);

    public int update(@Param("record") Region record);

    public int delete(String id);

    public int checkName(String name);

    public int checkNameById(@Param("name") String name,@Param("id") String id);

    public List<Province> selectProvince();

    public List<City> selectCity(String provinceCode);
}
